import request from '../config/axios';
var bac='/v1'
// 登录
export function login(data){
  return request({
    url:bac+'/user/login',
    method:'post',
    data
  })
}
// 获取业主信息
export function getownerinfo(params){
  return request({
    url:bac+'/user/getownerinfo',
    method:'get',
    params
  })
}
// 添加住户信息
export function addtoUser(data){
  return request({
    url:bac+'/user/addtoUser',
    method:'post',
    data
  })
}
// 删除住户
export function deleteYz(data){
  return request({
    url:bac+'/user/delete-yz',
    method:'post',
    data
  })
}